package pers.wensheng.patterns.behavioral_pattern.command_pattern.entity;

import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;
import java.util.Map;

/**
 * 订单类
 */
public class Order {
    /**
     * 餐桌号
     */
    @Getter
    @Setter
    private int diningTable;
    /**
     * 下的餐品以及份数
     */
    @Getter
    private final Map<String,Integer> foodDir = new HashMap<>();

    public void setFood(String name,Integer num) {
        foodDir.put(name,num);
    }

}
